package com.ruoyi.shopping.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 论坛点赞对象 jy_bbs_like
 *
 * @author ruoyi
 * @date 2022-06-20
 */
@ApiModel
public class BbsLike extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(value = "${comment}")
    private Long id;

    /** 外键Id-论坛内容或评论内容 */
    @Excel(name = "外键Id-论坛内容或评论内容")
    @ApiModelProperty(value = "外键Id-论坛内容或评论内容")
    private Long foreignId;

    /** 所属类型 点赞还是收藏*/
    @Excel(name = "所属类型点赞还是收藏")
    @ApiModelProperty(value = "所属类型")
    private String belongType;


    /** 所属端 */
    @Excel(name = "所属端")
    private String belongs;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setForeignId(Long foreignId)
    {
        this.foreignId = foreignId;
    }

    public Long getForeignId()
    {
        return foreignId;
    }
    public void setBelongType(String belongType)
    {
        this.belongType = belongType;
    }

    public String getBelongType()
    {
        return belongType;
    }

    public String getBelongs() {
        return belongs;
    }

    public void setBelongs(String belongs) {
        this.belongs = belongs;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("foreignId", getForeignId())
            .append("belongType", getBelongType())
            .append("delState", getDelState())
            .append("delUser", getDelUser())
            .append("delType", getDelType())
            .append("delTime", getDelTime())
            .append("createBy", getCreateBy())
            .append("createType", getCreateType())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateType", getUpdateType())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
